html,
body {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* 页头 */
#header {
    height: 0.6rem;
    background-color: #e94645;
}

/* 主体 */
#main {
    flex: 1;
    /* 超出出现滚动条 */
    overflow: auto;
    background-color: #fff;
}

/* 页脚 */
#footer {
    height: 1.05rem;
    background-color: #fff;
}

/* 页头 */
#header {
    padding: 0.2rem 0.3rem;
}

#header .search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 0.3rem;
}

#header .search div:nth-child(1) {
    width: 0.8rem;
    height: 0.6rem;
    text-align: center;
    line-height: 0.6rem;
}

#header .search span {
    color: #919191;
    font-size: 0.32rem;
}

#header .search div:nth-child(2) {
    padding-right: 0.8rem;
    flex-grow: 1;
}

#header .search input {
    width: 100%;
    height: 0.6rem;
    border: none;
    outline: none;
}

/* 轮播区 */
#banner {
    height: 2.4rem;
    margin-bottom: 0.25rem;
}

#banner img {
    width: 100%;
    height: 100%;
}

/* 热门活动 */
#hotAction {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 1.26rem;
    margin-bottom: 0.25rem;
}

#hotAction a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1.05rem;
    height: 100%;
}

#hotAction a span:nth-child(1) {
    width: 0.82rem;
    height: 0.82rem;
    margin-bottom: 0.15rem;
    border-radius: 50%;
    color: #eaeaea;
    font-size: 0.32rem;
    text-align: center;
    line-height: 0.82rem;
}

#hotAction a:nth-child(1) span:nth-child(1) {
    background: linear-gradient(#f37180, #E94F59);
}

#hotAction a:nth-child(2) span:nth-child(1) {
    background: linear-gradient(#23dcd5, #1bccc2);
}

#hotAction a:nth-child(3) span:nth-child(1) {
    background: linear-gradient(#53c256, #7fd465);
}

#hotAction a:nth-child(4) span:nth-child(1) {
    background: linear-gradient(#cea3ff, #AA82FF);

}

#hotAction a:nth-child(5) span:nth-child(1) {
    background: linear-gradient(#ea725d, #df4959);
}

#hotAction a span:nth-child(2) {
    stop-color: #000;
    font-size: 0.26rem;
}

/* 公告区 */
#ad {
    height: 1.76rem;
    margin-bottom: 0.14rem;
    border: 0.01rem solid #efeff4;
}

#ad img {
    width: 100%;
    height: 100%;
}

/* 用药区 */
#phar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-between;
    height: 3.9rem;
    margin-bottom: 0.15rem;
    padding-bottom: 0.15rem;
    border-bottom: 0.01rem solid #efeff4;
}

#phar div {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 1.8rem;
}

#phar div a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1rem;
    height: 100%;
}

#phar img {
    width: 0.85rem;
    height: 0.85rem;
    margin-bottom: 0.38rem;
    border-radius: 50%;
}

#phar span:nth-of-type(1) {
    margin-bottom: 0.07rem;
    color: #666666;
    font-size: 0.25rem;
}

#phar span:nth-of-type(2) {
    color: #999999;
    font-size: 0.24rem;
}

/* 上线了 */
#online {
    height: 0.39rem;
    margin-left: 0.32rem;
}

#online a {
    color: #e94645;
    font-size: 0.23rem;
}

/* 页脚 */
#footer {
    border-top: 0.01rem solid #dddddd;
    box-shadow: 0.03rem 0.03rem 0.03rem #ccc;
}

#footer ul {
    height: 1.05rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #7f8389;
}

#footer li:hover {
    color: #e94645;
}

#footer li div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#footer li div:nth-child(1) span {
    font-size: 0.42rem;
}

#footer li div:nth-child(2) a {
    color: #7f8389;
    font-size: 0.2rem;
}

#footer li div:nth-child(2) a:hover {
    color: #e94645;
}